package cn.flyboy.utils;

import cn.flyboy.entity.StaticResources;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public class PagingSize {
    public static int splitPageSize(HttpServletRequest request) {
        Map config = ConfigUtils.getConfig(request);
        int spiltPageCount = config.get(StaticResources.SPLIT_PAGE_COUNT) == null ? 10 : Integer.parseInt((String) config.get(StaticResources.SPLIT_PAGE_COUNT));
        System.out.println("分页数：" + spiltPageCount);
        return spiltPageCount;
    }
}
